<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{if $title}><{$title}>,<{$config.company}><{else}><{$config.title}>,<{$config.company}><{/if}></title>
<meta name="description" content="<{$config.description|regex_replace:"/[\r\t\n]/":""}>" />
<meta name="keywords" content="<{$config.keyword|regex_replace:"/[\r\t\n]/":""}>" />
<meta name="author" content="庆丰裕软件工作室" />
<meta name="copyright" content="庆丰裕软件工作室" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" href="<{$config.weburl}>/templates/default/page.css">
<link type="text/css" rel="stylesheet" href="<{$config.weburl}>/module/product/templates/default/pro.css">
<script src="<{$config.weburl}>/script/prototype.js" type="text/javascript"></script>
<script src="<{$config.weburl}>/script/index.js" type="text/javascript"></script>
<script>
var showCL = true;
function setShowCL(){
	showCL = true;
}
function offShowCL(){
	showCL = false;
}
function toggleCateDrop()
{
	if(!showCL)
		$('catalogListBox').style.display='none';
}
function cate_drop_show()
{
　	if($('catalogListBox').style.display=='block'){
		Event.stopObserving($('searchTypeBox'), "mouseover",setShowCL, false);
		Event.stopObserving($('searchTypeBox'), "mouseout",offShowCL, false);
		$('catalogListBox').style.display='none';
		Event.stopObserving(document, "click", toggleCateDrop, false);		
	}else{
		Event.observe($('searchTypeBox'), "mouseover",setShowCL, false);
		Event.observe($('searchTypeBox'), "mouseout",offShowCL, false); 
		Event.observe(document, "click", toggleCateDrop, false);
		$('catalogListBox').style.display='block';
	}
}

</script>
</head>
<body>
<div id="header">
  <div id="logosearch">
    <div class="ls_top">
    <ul id="hr">
	<{if $smarty.cookies.USER}>
		<li><a href="<{$config.weburl}>/main.php"/><span><{$smarty.cookies.USER}>你好!</span>  我的商务办公室</a></li>
		<li><a href="<{$config.weburl}>/main.php?action=logout"/>退出</a></li>
	<{else}>
		<li><a href="<{$config.weburl}>/<{$config.regname}>">注册</a></li>
		<li><a href="<{$config.weburl}>/login.php">登录</a></li>
	<{/if}>
		<li><a href="<{$config.weburl}>/aboutus.php">帮助</a></li>
		<li><a href="<{$config.weburl}>">返回主站</a></li>
    </ul>
	<a href="<{$config.weburl}>/?m=product" id="s_logo" class='fl'>
		<img src="<{if $config.logo}><{$config.logo}><{else}><{$config.weburl}>/image/default/logo.gif<{/if}>" />
	</a>
    </div>
    <div id="search_bar">
        <form method="get" action="<{$config.weburl}>/">
          <div class="fast_sear">
            <input id="search_key" value="<{$smarty.get.key}>" type="text" name="key"  autocomplete="off" />
            <input id="m" name="m" type="hidden" value="product" />
            <{if $smarty.get.id}><input name="id" type="hidden" value="<{$smarty.get.id}>" /><{/if}>
            <input id="s" name="s" type="hidden" value="product_list" />
          </div>
          <div class="search_type" id="searchTypeBox">
            <input id="search_type_in" value="<{if $smarty.get.search_type!=''}><{$smarty.get.search_type}><{else}>所有类别<{/if}>" name="search_type" readonly="readonly" onclick="cate_drop_show();" style="width:215px;" />
            <input type="hidden" name="s_catid" id="search_catid" value="<{$smarty.get.s_catid}>" />
            <div class="search_type_drop" id="type_drop" style="*margin-top:0.09em;" onclick="cate_drop_show();"></div>
            <div id="catalogListBox" class="search-category" style="display:none; position:relative">
            <ul class="search-category-list" style="">
              <li>所有类别</li>
              <li class="sub-line"></li>
              <{foreach from=$cat item=list}>
              <li catid="<{$list.catid}>"><{$list.cat}></li>
              <{/foreach}>
            </ul>
            </div>
          </div>
          <div class="fast_r">
            <input class="search_btn" type="submit" value="search" style="float:left; vertical-align:text-bottom" />
            <a href="<{$config.weburl}>/search.php&stype=2" style="margin-left:10px;float:left; margin-top:4px;">高级搜索</a> </div>
           <div class="gwc"><a href="#">购物车<span>0</span></a></div>
      </form>
    </div>
  </div>
  <div id="nav">
    <div class="nav_all_cat" id="all_cat">
	<a href="<{$config.weburl}>/?m=product&s=product_list" style="margin-left:7px;font-weight:bold;font-size:13px;">产品类别</a>
    <{if $smarty.get.s}>
    <ul id="all_cate_list" class="cat_list_show cat_show_in" style="display:none; margin-left:-1px;">
      <{foreach from=$cat item=list}>
      <li>
     	 <div><a <{if $list.sub!=null}>class="sup"<{/if}> href="<{$config.weburl}>/?m=product&s=product_list&id=<{$list.catid}>"><{$list.cat}></a></div>
         <{if $list.sub!=null}>
         <p>
          <{foreach from=$list.sub item=item}>     
            <a href="<{$config.weburl}>/?m=product&s=product_list&id=<{$item.catid}>"><{$item.cat}></a>
          <{/foreach}>
        </p>
        <{/if}>
        </li>
      <{/foreach}>
    </ul>
    <{/if}>
    </div>
  </div>
      <div class="s_nav_list">
      <ul>
  		<{foreach from=$cat key=num item=list}>
			<{if $list.catid<9999&&$num<8}>
				<li><a href="<{$config.weburl}>/?m=product&s=product_list&id=<{$list.catid}>"><{$list.cat}></a></li>
			<{/if}>
       <{/foreach}>
      </ul>
    </div>
</div>